<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div onclick="f1()">hello</div>
<script>
    function f1() {
        location.replace("http://code.giffox.com/")
    }
</script>
</body>
</html>